home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.5 KB | 38 lines | [TEXT/GEOL] |
- Item 2397643 14-July-87 13:36
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: U0239 Louisiana State U Bookstore
-
- cc: MACAPP$ MacApp Interest List
-
- Sub: Response to Patching TESelect…
-
- To elaborate on what David said about this:
-
- TApplication.SetupTheMenus is responsible for setting up the menus. It uses a
- global flag (gMenusAreSetup) to determine if it has to do anything.
-
- MacApp always calls SetupTheMenus when the user clicks in the menu bar or types
- a command-key. MacApp also calls this once in TApplication.Idle if there are
- no other events pending. MacApp always sets gMenusAreSetup to FALSE each time
- through the event loop. (See TApplication.DispatchEvent, which contains the
- local proc FinishDisEvt.)
-
- This should be sufficient for changing the text of a menu item, so you can do
- this in your DoSetupMenus. Be sure to call the MacApp global procedure
- SetCmdName.
-
- In addition, there is another global flag called gRedrawMenuBar. If you set
- this to TRUE, then MacApp will call SetupTheMenus immediately after the current
- event is processed, without waiting until the Idle method. (This is also done
- in FinishDispEvt.) You can also set it to TRUE within a DoSetupMenus method to
- force MacApp to redraw the menu bar; normally them menu bar is not redrawn
- unless MacApp determines that something has changed. gRedrawMenuBar is
- normally usd only if you add/remove menus from the menu bar.
-
- Larry Rosenstein
-
-
-
-